import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import axios from 'axios'
import echarts from 'echarts'
import VueCookies from 'vue-cookies'
// import './mock/index'
import {
  Button, Select, Container,
  Header,
  Aside,
  Main,
  Footer,
  Table,
  TableColumn,
  Message,
} from 'element-ui'

// axios.defaults.baseURL = 'http://127.0.0.1:8081'

Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$msg = Message

Vue.use(Button)
Vue.use(Select)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(VueCookies)

Vue.config.productionTip = false

// require('./mock/index')

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
